﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DiscussIndex.aspx.cs" Inherits="DiscussArea_DiscussIndex"
    ValidateRequest="false" %>

<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<%@ Register Assembly="HtmlEditor" Namespace="HtmlEditor" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>

    <script type="text/javascript" src="../js/DiscussTheme.js"></script>

</head>
<body leftmargin="0" topmargin="5" bgcolor="#EEEEEE">
    <form id="form1" runat="server">
        <table style="" width="100%">
            <tr>
                <td colspan="3" align="center">
                    <asp:ImageButton ID="IbtSend" runat="server" ImageUrl="~/images/fabiaopinglun.png"
                        OnClientClick="return displayAppearTable()" />
                    <asp:ImageButton ID="ImageButton1" runat="server" OnClick="ImageButton1_Click" ImageUrl="~/images/BackDArea.png" /></td>
            </tr>
        </table>
        <table id="appearTable" align="center" style="font-size: 12px; display:none" bgcolor="black" cellpadding="1"
            cellspacing="1">
            <tr>
                <td align="center" height="30px" background="../User/CSS/Snap1.jpg" colspan="2">
                    <b>主题发表</b>
                </td>
            </tr>
            <tr bgcolor="#ffffff">
                <td style="width: 69px" align="center">
                    <asp:Label ID="Label1" runat="server" Font-Bold="True" Text="标题:"></asp:Label></td>
                <td style="width: 634px">
                    <asp:TextBox ID="TxtTitle" runat="server" Width="569px"></asp:TextBox>
                    <asp:ImageButton ID="ImageButton4" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/close.png"
                        OnClientClick="return hiddAppearTable()" /></td>
            </tr>
            <tr bgcolor="#ffffff">
                <td style="width: 69px;" align="center">
                    <asp:Label ID="Label2" runat="server" Font-Bold="True" Text="内容:" Width="66px"></asp:Label></td>
                <td style="width: 634px;">
                    <FTB:FreeTextBox ID="TxtContent" runat="server" Width="100%" ButtonPath="../images/ftb/office2003/">
                    </FTB:FreeTextBox>
                </td>
            </tr>
            <tr bgcolor="#ffffff">
                <td align="center" background="../User/CSS/Snap1.jpg" style="width: 69px; height: 30px;">
                    <asp:Label ID="Label3" runat="server" Font-Bold="True" Text="验证码:" Width="66px"></asp:Label></td>
                <td background="../User/CSS/Snap1.jpg" style="width: 634px; height: 30px;">
                    <asp:TextBox ID="TxtValidationCode" runat="server" Width="110px"></asp:TextBox>
                    <asp:Image ID="Image1" runat="server" Height="22px" ImageAlign="AbsMiddle" ImageUrl="../ValidationCode.aspx"
                        Width="48px" />
                    <asp:ImageButton ID="ImageButton5" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/fabiao.png"
                        OnClick="ImageButton5_Click" OnClientClick="return checkTitleAndContent('TxtTitle','TxtContent')" /></td>
            </tr>
        </table>
        <table align="center" cellpadding="0" cellspacing="1" bgcolor="black" width="95%" style="font-size:12px">
            <tr bgcolor="white">
                <td style="height: 0px">
                    <asp:DataList ID="DataList1" runat="server" CellPadding="0" CellSpacing="0" BackColor="black"
                        OnItemDataBound="DataList1_ItemDataBound" Width="100%">
                        <HeaderTemplate>
                            <tr align="center" bgcolor="white">
                                <td background="../User/CSS/Snap1.jpg" style="width: 36px; height:30px;">
                                </td>
                                <td align="center" background="../User/CSS/Snap1.jpg">
                                    <b>主题</b></td>
                                <td align="center" background="../User/CSS/Snap1.jpg">
                                    <b>作者</b>
                                </td>
                                <td align="center" background="../User/CSS/Snap1.jpg">
                                    <b>回复</b>
                                </td>
                                <td align="center" background="../User/CSS/Snap1.jpg">
                                    <b>人气</b></td>
                                <td align="center" background="../User/CSS/Snap1.jpg">
                                    <b>最后评论</b></td>
                            </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr bgcolor="#ffffff" align="center">
                                <td>
                                    <asp:Image ID="Image1" runat="server" Height="36px" ImageUrl="~/images/DiscussInfo.png"
                                        Width="36px" /></td>
                                <td style="word-break: break-all;" align="center">
                                    <asp:HyperLink ID="HylTitle" runat="server" Text='<%# Eval("DiscussThemeTitle") %>'></asp:HyperLink></td>
                                <td align="center" width="100px">
                                    <asp:Label ID="LblAuthor" runat="server" Text='<%# Eval("DiscussThemeAuthor") %>'
                                        ></asp:Label></td>
                                <td align="center" width="50px">
                                    <asp:Label ID="LblRecall" runat="server" Text='<%# Eval("DiscussThemeAppCount") %>'
                                       ></asp:Label></td>
                                <td align="center" width="50px">
                                    <asp:Label ID="LblHot" runat="server" Text='<%# Eval("DiscussThemeHot") %>'
                                        ></asp:Label></td>
                                <td align="center" width="200px">
                                    <asp:Label ID="LblLastTime" runat="server" Text='<%# Eval("DiscussThemeLastAppTime") %>'
                                        Width="120px"></asp:Label><font style="font-size: 20px" color="red">| </font><asp:Label ID="LblLastUser" runat="server" Text='<%# Eval("DiscussThemeLastAppUser") %>'
                                       ></asp:Label>
                                        <input id="HidDtId" runat="server" type="hidden" value='<%# Eval("DiscussThemeId") %>' /></td>
                            </tr>
                            
                        </ItemTemplate>
                        <FooterTemplate>
                            <tr>
                                <td style="height: 29px" colspan="6" align="right" background="../User/CSS/Snap1.jpg">
                                    <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/images/DiscussRetu.png"
                                        ToolTip="上一页" OnClick="ImageButton3_Click" />
                                    <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/images/DiscussNext.png"
                                        ToolTip="下一页" OnClick="ImageButton2_Click" /></td>
                            </tr>
                        </FooterTemplate>
                    </asp:DataList></td>
            </tr>
        </table>
    </form>
</body>
</html>
